package API.DAY4.file;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
//        File file = new File("E:\\IDEA\\Project\\DANEI\\Demo.txt");
//        File file = new File("E:/IDEA/Project/DANEI/Demo.txt");
        File file = new File("./Demo.txt");

        System.out.println("名："+file.getName());
        System.out.println("大小:"+file.length());

        System.out.println("可读；"+file.canRead());
        System.out.println("可写："+file.canWrite());
        System.out.println("隐藏："+file.isHidden());
    }
}

